package indi.zn.commons.collection;

import java.util.Map;

public class MapBuilder<K, V> {

	private Map<K, V> map;

	public MapBuilder(){
		
		this.map=Maps.newMap();
		
	}
	
    public MapBuilder(MapType  type){
		
    	this.map=Maps.newMap(type);
		
	}
    
    public MapBuilder(Map<K, V>  map){
		
		this.map=map;
		
	}
    
   
    public MapBuilder<K, V> put(K key, V value){
    	
    	this.map.put(key, value);
		return this;
    	
    }
    
    public MapBuilder<K, V> put(Map<K, V> map){
    	
    	this.map.putAll(map);
		return this;
    	
    }
    
    
    
    public Map<K, V>  getMap(){
		return map;
    
    }
	
	
}
